/**
 * Copyright (c) 2019, ShangHai YTO Co., Ltd.
 * All right reserved.
 * <p>
 * THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF YTO
 * CO., LTD.  THE CONTENTS OF THIS FILE MAY NOT BE DISCLOSED
 * TO THIRD PARTIES, COPIED OR DUPLICATED IN ANY FORM, IN WHOLE OR IN PART,
 * WITHOUT THE PRIOR WRITTEN PERMISSION OF YTO
 * CO., LTD.
 */
package org.sc.xl.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import org.sc.xl.dao.DynamicMapper;
import org.sc.xl.service.DynamicService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * @description: TODO 请在此添加描述
 * @reason: TODO ADD REASON(可选)
 * @author FXL
 *
 * @date 2021/11/17 19:26 
 * @since JDK 1.8
 */
@Service
public class DynamicServiceImpl implements DynamicService {


    @Autowired
    private DynamicMapper dynamicMapper;

    @DS("yto_bigdata_app")
    @Override
    public int dynamicBatch(Map<String, Object> paramsMap) {
        return dynamicMapper.dynamicInsertBatch(paramsMap);
    }
}
